xen: lift hypercall_cancel_continuation to sched.h
authorWei Liu <wei.liu2@citrix.com>
Mon, 14 Aug 2017 15:46:28 +0000 (16:46 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 15 Aug 2017 14:49:26 +0000 (15:49 +0100)
commit5b7c2a25d0e9ebb882e7383fb8d09f3e9b6784e4
tree2f229d6202f24ca87f925461d2bd604d2fc6c4c7
parent8dca2fe393d7ef6fdffd0c9632cdd930a8f49abe
xen: lift hypercall_cancel_continuation to sched.h

The function is the same on both x86 and arm. Lift it to sched.h to
save a function call, make it take a pointer to vcpu to avoid
resolving current every time it gets called.

Take the chance to change one of its callers to only use one current
in code.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/arm/domain.c
xen/arch/x86/hypercall.c
xen/arch/x86/x86_64/compat/mm.c
xen/common/multicall.c
xen/include/xen/sched.h